package com.lagou.job;

import lombok.extern.slf4j.Slf4j;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;

/**
 * 定时任务
 */
@Configuration
@EnableScheduling
@Slf4j
public class SaticScheduleTask {

    /*@Autowired
    private IOrderService orderService;
    //添加定时任务 5秒执行一次
    @Scheduled(cron = "0/5 * * * * ?")
    private void configureTasks() {
        log.info("定时任务时间:" + LocalDateTime.now());
        orderService.clean();
    }*/
}
